Skip to content

legacy: Arduino preprocess subroutine refactorization (part 3) #2193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 31, 2023

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented May 31, 2023

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

This PR is a try to split the bigger PR #2147 into smaller pieces to allow an easier review process.

What is the current behavior?

No changes

Does this PR introduce a breaking change, and is titled accordingly?

No

Other information

cmaglie added 7 commits May 30, 2023 21:24
The last piece in RunCTags:

 	parser := &ctags.CTagsParser{}
 	parser.Parse(ctagsStdout, sketch.MainFile)
 	parser.FixCLinkageTagsDeclarations()

 	prototypes, line := parser.GeneratePrototypes()
 	if line != -1 {
 		prototypesLineWhereToInsert = line
 	}

has been moved at the beginning of PrototypesAdder.
RunCTags now returns the output of ctags instead of `prototypes` and `line`.
This also allows to remove the context variables that keeps those
information.
@cmaglie cmaglie changed the title [skip-changelog] legacy: Arduino preprocess subroutine refactorization (part 2) [skip-changelog] legacy: Arduino preprocess subroutine refactorization (part 3) May 31, 2023
@cmaglie cmaglie added type: enhancement Proposed improvement topic: code Related to content of the project itself labels May 31, 2023
@codecov
Copy link

codecov bot commented May 31, 2023

Codecov Report

Patch coverage: 69.49% and project coverage change: -0.01 ⚠️

Comparison is base (41bd2e4) 62.79% compared to head (3eac673) 62.78%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2193      +/-   ##
==========================================
- Coverage   62.79%   62.78%   -0.01%     
==========================================
  Files         221      221              
  Lines       19463    19465       +2     
==========================================
+ Hits        12221    12222       +1     
+ Misses       6155     6154       -1     
- Partials     1087     1089       +2     
Flag Coverage Δ
unit 62.78% <69.49%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
legacy/builder/types/context.go 97.53% <ø> (ø)
legacy/builder/container_add_prototypes.go 75.00% <50.00%> (-1.63%) ⬇️
arduino/builder/preprocessor/ctags.go 67.85% <67.85%> (ø)
legacy/builder/prototypes_adder.go 90.32% <71.42%> (-4.13%) ⬇️
executils/process.go 81.94% <100.00%> (+3.48%) ⬆️

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cmaglie cmaglie merged commit 9ce2904 into arduino:master May 31, 2023
@cmaglie cmaglie deleted the legacy-part3 branch May 31, 2023 14:44
@cmaglie cmaglie changed the title [skip-changelog] legacy: Arduino preprocess subroutine refactorization (part 3) legacy: Arduino preprocess subroutine refactorization (part 3) Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants